﻿namespace HRM.CORE.REPORT
{
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using Dictionary.ERP;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptReportRate5 : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private IContainer components;
        private DetailBand Detail;
        private XRLabel dtDate;
        private GroupHeaderBand GroupHeader1;
        private HRM_PROCESS_RATE l_Rate;
        private string m_Code;
        private int m_Level;
        private int m_Month;
        private int m_Order;
        private int m_Year;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRLabel txtCompany;
        private XRTableCell txtOrder;
        private XRLabel txtTitle;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTable xrTable3;
        private XRTable xrTable4;
        private XRTable xrTable5;
        private XRTable xrTable6;
        private XRTable xrTable7;
        private XRTable xrTable8;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell10;
        private XRTableCell xrTableCell11;
        private XRTableCell xrTableCell12;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell15;
        private XRTableCell xrTableCell16;
        private XRTableCell xrTableCell17;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell19;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell20;
        private XRTableCell xrTableCell21;
        private XRTableCell xrTableCell22;
        private XRTableCell xrTableCell23;
        private XRTableCell xrTableCell24;
        private XRTableCell xrTableCell25;
        private XRTableCell xrTableCell26;
        private XRTableCell xrTableCell27;
        private XRTableCell xrTableCell28;
        private XRTableCell xrTableCell29;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell30;
        private XRTableCell xrTableCell31;
        private XRTableCell xrTableCell32;
        private XRTableCell xrTableCell33;
        private XRTableCell xrTableCell34;
        private XRTableCell xrTableCell35;
        private XRTableCell xrTableCell36;
        private XRTableCell xrTableCell37;
        private XRTableCell xrTableCell38;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell5;
        private XRTableCell xrTableCell6;
        private XRTableCell xrTableCell7;
        private XRTableCell xrTableCell8;
        private XRTableCell xrTableCell9;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow3;
        private XRTableRow xrTableRow4;
        private XRTableRow xrTableRow5;
        private XRTableRow xrTableRow6;
        private XRTableRow xrTableRow7;
        private XRTableRow xrTableRow8;

        public rptReportRate5()
        {
            this.components = null;
            this.l_Rate = new HRM_PROCESS_RATE();
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Order = 0;
            this.InitializeComponent();
        }

        public rptReportRate5(int Level, string Code, int Year)
        {
            this.components = null;
            this.l_Rate = new HRM_PROCESS_RATE();
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Order = 0;
            this.InitializeComponent();
            this.m_Level = Level;
            this.m_Code = Code;
            this.m_Year = Year;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.xrTableCell12 = new XRTableCell();
            this.xrTableCell16 = new XRTableCell();
            this.xrTableCell25 = new XRTableCell();
            this.xrTableCell20 = new XRTableCell();
            this.xrTableCell5 = new XRTableCell();
            this.xrTableCell27 = new XRTableCell();
            this.xrTableCell26 = new XRTableCell();
            this.xrTableCell28 = new XRTableCell();
            this.xrTableCell17 = new XRTableCell();
            this.xrTableCell6 = new XRTableCell();
            this.xrTableCell31 = new XRTableCell();
            this.xrTableCell32 = new XRTableCell();
            this.xrTableCell38 = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.dtDate = new XRLabel();
            this.txtTitle = new XRLabel();
            this.txtCompany = new XRLabel();
            this.ReportFooter = new ReportFooterBand();
            this.xrTable3 = new XRTable();
            this.xrTableRow3 = new XRTableRow();
            this.xrTableCell7 = new XRTableCell();
            this.xrTableCell10 = new XRTableCell();
            this.xrTableCell8 = new XRTableCell();
            this.xrTableCell9 = new XRTableCell();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell11 = new XRTableCell();
            this.xrTableCell13 = new XRTableCell();
            this.xrTableCell22 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableCell23 = new XRTableCell();
            this.xrTableCell21 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.xrTableCell24 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.xrTableCell3 = new XRTableCell();
            this.xrTableCell30 = new XRTableCell();
            this.xrTableCell29 = new XRTableCell();
            this.xrTableCell37 = new XRTableCell();
            this.xrTableCell15 = new XRTableCell();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrTable8 = new XRTable();
            this.xrTableRow8 = new XRTableRow();
            this.xrTableCell36 = new XRTableCell();
            this.xrTable7 = new XRTable();
            this.xrTableRow7 = new XRTableRow();
            this.xrTableCell35 = new XRTableCell();
            this.xrTable6 = new XRTable();
            this.xrTableRow6 = new XRTableRow();
            this.xrTableCell34 = new XRTableCell();
            this.xrTable5 = new XRTable();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell33 = new XRTableCell();
            this.xrTable4 = new XRTable();
            this.xrTableRow4 = new XRTableRow();
            this.xrTableCell19 = new XRTableCell();
            this.xrTable2.BeginInit();
            this.xrTable3.BeginInit();
            this.xrTable1.BeginInit();
            this.xrTable8.BeginInit();
            this.xrTable7.BeginInit();
            this.xrTable6.BeginInit();
            this.xrTable5.BeginInit();
            this.xrTable4.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.xrTable2 });
            this.Detail.HeightF = 25f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrTable2.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable2.Font = new Font("Times New Roman", 9.75f);
            this.xrTable2.LocationFloat = new PointFloat(1.589457E-05f, 0f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(1039f, 25f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTable2.StylePriority.UseFont = false;
            this.xrTable2.StylePriority.UsePadding = false;
            this.xrTable2.StylePriority.UseTextAlignment = false;
            this.xrTable2.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { this.txtOrder, this.xrTableCell12, this.xrTableCell16, this.xrTableCell25, this.xrTableCell20, this.xrTableCell5, this.xrTableCell27, this.xrTableCell26, this.xrTableCell28, this.xrTableCell17, this.xrTableCell6, this.xrTableCell31, this.xrTableCell32, this.xrTableCell38, this.xrTableCell18 });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Text = "txtOrder";
            this.txtOrder.Weight = 0.15137000220900365;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.xrTableCell12.Name = "xrTableCell12";
            this.xrTableCell12.Text = "[EmployeeCode]";
            this.xrTableCell12.Weight = 0.24546124706033134;
            this.xrTableCell16.Name = "xrTableCell16";
            this.xrTableCell16.Text = "[FirstName] [LastName]";
            this.xrTableCell16.Weight = 0.4082695891504573;
            this.xrTableCell25.Name = "xrTableCell25";
            this.xrTableCell25.StylePriority.UseTextAlignment = false;
            this.xrTableCell25.Text = "[Rate1]";
            this.xrTableCell25.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell25.Weight = 0.17901829415726128;
            this.xrTableCell20.Name = "xrTableCell20";
            this.xrTableCell20.StylePriority.UseTextAlignment = false;
            this.xrTableCell20.Text = "[Value1]";
            this.xrTableCell20.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell20.Weight = 0.17901829415726128;
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.StylePriority.UseTextAlignment = false;
            this.xrTableCell5.Text = "[Rate2]";
            this.xrTableCell5.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell5.Weight = 0.17901829415726134;
            this.xrTableCell27.Name = "xrTableCell27";
            this.xrTableCell27.StylePriority.UseTextAlignment = false;
            this.xrTableCell27.Text = "[Value2]";
            this.xrTableCell27.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell27.Weight = 0.17901829048575285;
            this.xrTableCell26.Name = "xrTableCell26";
            this.xrTableCell26.StylePriority.UseTextAlignment = false;
            this.xrTableCell26.Text = "[Rate3]";
            this.xrTableCell26.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell26.Weight = 0.17901829048575291;
            this.xrTableCell28.Name = "xrTableCell28";
            this.xrTableCell28.StylePriority.UseTextAlignment = false;
            this.xrTableCell28.Text = "[Value3]";
            this.xrTableCell28.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell28.Weight = 0.17901829048575291;
            this.xrTableCell17.Name = "xrTableCell17";
            this.xrTableCell17.StylePriority.UseTextAlignment = false;
            this.xrTableCell17.Text = "[Rate4]";
            this.xrTableCell17.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell17.Weight = 0.17901829048575293;
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.StylePriority.UseTextAlignment = false;
            this.xrTableCell6.Text = "[Value4]";
            this.xrTableCell6.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell6.Weight = 0.17901829415726145;
            this.xrTableCell31.Name = "xrTableCell31";
            this.xrTableCell31.StylePriority.UseTextAlignment = false;
            this.xrTableCell31.Text = "[Rate]";
            this.xrTableCell31.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell31.Weight = 0.17901827947122761;
            this.xrTableCell32.Name = "xrTableCell32";
            this.xrTableCell32.StylePriority.UseTextAlignment = false;
            this.xrTableCell32.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell32.Weight = 0.17901829415726128;
            this.xrTableCell38.Name = "xrTableCell38";
            this.xrTableCell38.Text = "[Value]";
            this.xrTableCell38.Weight = 0.17901827947122759;
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.Text = "[Description]";
            this.xrTableCell18.Weight = 0.22569796990843435;
            this.TopMargin.HeightF = 70f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 56f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.dtDate, this.txtTitle, this.txtCompany });
            this.ReportHeader.HeightF = 98f;
            this.ReportHeader.Name = "ReportHeader";
            this.dtDate.Font = new Font("Times New Roman", 11f);
            this.dtDate.LocationFloat = new PointFloat(316.2499f, 68.37502f);
            this.dtDate.Name = "dtDate";
            this.dtDate.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.dtDate.SizeF = new SizeF(721.7502f, 17.99997f);
            this.dtDate.StylePriority.UseFont = false;
            this.dtDate.StylePriority.UseTextAlignment = false;
            this.dtDate.Text = "Ph\x00f2ng ban ................................................. Năm ...........";
            this.dtDate.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTitle.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.txtTitle.LocationFloat = new PointFloat(317.2499f, 10.00001f);
            this.txtTitle.Multiline = true;
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTitle.SizeF = new SizeF(721.7501f, 58.37501f);
            this.txtTitle.StylePriority.UseFont = false;
            this.txtTitle.StylePriority.UseTextAlignment = false;
            this.txtTitle.Text = "B\x00c1O C\x00c1O KẾT QUẢ Đ\x00c1NH GI\x00c1/XẾP LOẠI CBCNV";
            this.txtTitle.TextAlignment = TextAlignment.MiddleCenter;
            this.txtCompany.Font = new Font("Times New Roman", 12f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(0f, 10.00001f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(305.9166f, 58.37501f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.StylePriority.UseTextAlignment = false;
            this.txtCompany.Text = "txtCompany";
            this.txtCompany.TextAlignment = TextAlignment.MiddleCenter;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.xrTable3 });
            this.ReportFooter.HeightF = 107f;
            this.ReportFooter.Name = "ReportFooter";
            this.xrTable3.Font = new Font("Times New Roman", 11f, FontStyle.Bold);
            this.xrTable3.LocationFloat = new PointFloat(1.589457E-05f, 28.125f);
            this.xrTable3.Name = "xrTable3";
            this.xrTable3.Rows.AddRange(new XRTableRow[] { this.xrTableRow3 });
            this.xrTable3.SizeF = new SizeF(1039f, 29.16667f);
            this.xrTable3.StylePriority.UseFont = false;
            this.xrTable3.StylePriority.UseTextAlignment = false;
            this.xrTable3.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow3.Cells.AddRange(new XRTableCell[] { this.xrTableCell7, this.xrTableCell10, this.xrTableCell8, this.xrTableCell9 });
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.Weight = 1.0;
            this.xrTableCell7.Name = "xrTableCell7";
            this.xrTableCell7.Text = "GI\x00c1M ĐỐC (Duyệt)";
            this.xrTableCell7.Weight = 0.68046198267564972;
            this.xrTableCell10.Name = "xrTableCell10";
            this.xrTableCell10.Text = "T. BAN H\x00c0NH CH\x00cdNH";
            this.xrTableCell10.Weight = 0.78272374348645035;
            this.xrTableCell8.Name = "xrTableCell8";
            this.xrTableCell8.Text = "TRƯỞNG BỘ PHẬN";
            this.xrTableCell8.Weight = 0.85262269946218572;
            this.xrTableCell9.Name = "xrTableCell9";
            this.xrTableCell9.Text = "NGƯỜI LẬP";
            this.xrTableCell9.Weight = 0.68419157437571432;
            this.xrTable1.AnchorVertical = VerticalAnchorStyles.Bottom;
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTable1.LocationFloat = new PointFloat(1.589457E-05f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(1039f, 63.49999f);
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.xrTable1.StylePriority.UseTextAlignment = false;
            this.xrTable1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.xrTableCell1, this.xrTableCell11, this.xrTableCell13, this.xrTableCell22, this.xrTableCell4, this.xrTableCell23, this.xrTableCell21, this.xrTableCell14, this.xrTableCell24, this.xrTableCell2, this.xrTableCell3, this.xrTableCell30, this.xrTableCell29, this.xrTableCell37, this.xrTableCell15 });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell1.CanGrow = false;
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.Text = "STT";
            this.xrTableCell1.Weight = 0.15137000241443954;
            this.xrTableCell11.CanGrow = false;
            this.xrTableCell11.Name = "xrTableCell11";
            this.xrTableCell11.Text = "MSNV";
            this.xrTableCell11.Weight = 0.24546128899296107;
            this.xrTableCell13.CanGrow = false;
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.Text = "Họ v\x00e0 t\x00ean";
            this.xrTableCell13.Weight = 0.40826949890878306;
            this.xrTableCell22.CanGrow = false;
            this.xrTableCell22.Name = "xrTableCell22";
            this.xrTableCell22.Padding = new PaddingInfo(0, 0, 0, 4, 100f);
            this.xrTableCell22.StylePriority.UsePadding = false;
            this.xrTableCell22.StylePriority.UseTextAlignment = false;
            this.xrTableCell22.Text = "Xếp hạng";
            this.xrTableCell22.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell22.Weight = 0.17901828448070339;
            this.xrTableCell4.CanGrow = false;
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "Điểm mặc định";
            this.xrTableCell4.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell4.Weight = 0.17901828347722787;
            this.xrTableCell23.CanGrow = false;
            this.xrTableCell23.Name = "xrTableCell23";
            this.xrTableCell23.Padding = new PaddingInfo(0, 0, 0, 4, 100f);
            this.xrTableCell23.StylePriority.UsePadding = false;
            this.xrTableCell23.StylePriority.UseTextAlignment = false;
            this.xrTableCell23.Text = "Xếp hạng";
            this.xrTableCell23.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell23.Weight = 0.17901828347722776;
            this.xrTableCell21.CanGrow = false;
            this.xrTableCell21.Name = "xrTableCell21";
            this.xrTableCell21.StylePriority.UseTextAlignment = false;
            this.xrTableCell21.Text = "Điểm mặc định";
            this.xrTableCell21.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell21.Weight = 0.17901828952573509;
            this.xrTableCell14.CanGrow = false;
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.Padding = new PaddingInfo(0, 0, 0, 4, 100f);
            this.xrTableCell14.StylePriority.UsePadding = false;
            this.xrTableCell14.StylePriority.UseTextAlignment = false;
            this.xrTableCell14.Text = "Xếp hạng";
            this.xrTableCell14.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell14.Weight = 0.17901828952573512;
            this.xrTableCell24.CanGrow = false;
            this.xrTableCell24.Name = "xrTableCell24";
            this.xrTableCell24.StylePriority.UseTextAlignment = false;
            this.xrTableCell24.Text = "Điểm mặc định";
            this.xrTableCell24.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell24.Weight = 0.179018289525735;
            this.xrTableCell2.CanGrow = false;
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.Padding = new PaddingInfo(0, 0, 0, 4, 100f);
            this.xrTableCell2.StylePriority.UsePadding = false;
            this.xrTableCell2.StylePriority.UseTextAlignment = false;
            this.xrTableCell2.Text = "Xếp hạng";
            this.xrTableCell2.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell2.Weight = 0.17901828952573506;
            this.xrTableCell3.CanGrow = false;
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.Padding = new PaddingInfo(0, 0, 0, 4, 100f);
            this.xrTableCell3.StylePriority.UsePadding = false;
            this.xrTableCell3.StylePriority.UseTextAlignment = false;
            this.xrTableCell3.Text = "Điểm mặc định";
            this.xrTableCell3.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell3.Weight = 0.17901828930581343;
            this.xrTableCell30.CanGrow = false;
            this.xrTableCell30.Name = "xrTableCell30";
            this.xrTableCell30.StylePriority.UseTextAlignment = false;
            this.xrTableCell30.Text = "Xếp hạng theo điểm";
            this.xrTableCell30.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell30.Weight = 0.17901828857888619;
            this.xrTableCell29.CanGrow = false;
            this.xrTableCell29.Name = "xrTableCell29";
            this.xrTableCell29.StylePriority.UseTextAlignment = false;
            this.xrTableCell29.Text = "Khuyến kh\x00edch";
            this.xrTableCell29.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell29.Weight = 0.1790182885788863;
            this.xrTableCell37.CanGrow = false;
            this.xrTableCell37.Name = "xrTableCell37";
            this.xrTableCell37.StylePriority.UseTextAlignment = false;
            this.xrTableCell37.Text = "Tổng điểm";
            this.xrTableCell37.TextAlignment = TextAlignment.BottomCenter;
            this.xrTableCell37.Weight = 0.17901827756436098;
            this.xrTableCell15.CanGrow = false;
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.Text = "Ghi ch\x00fa";
            this.xrTableCell15.Weight = 0.22569805611777019;
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.xrTable8, this.xrTable7, this.xrTable6, this.xrTable5, this.xrTable4, this.xrTable1 });
            this.GroupHeader1.HeightF = 63.49999f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.xrTable8.BackColor = Color.White;
            this.xrTable8.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Top;
            this.xrTable8.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTable8.LocationFloat = new PointFloat(773.8334f, 0f);
            this.xrTable8.Name = "xrTable8";
            this.xrTable8.Rows.AddRange(new XRTableRow[] { this.xrTableRow8 });
            this.xrTable8.SizeF = new SizeF(186.9999f, 25f);
            this.xrTable8.StylePriority.UseBackColor = false;
            this.xrTable8.StylePriority.UseBorders = false;
            this.xrTable8.StylePriority.UseFont = false;
            this.xrTable8.StylePriority.UseTextAlignment = false;
            this.xrTable8.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow8.Cells.AddRange(new XRTableCell[] { this.xrTableCell36 });
            this.xrTableRow8.Name = "xrTableRow8";
            this.xrTableRow8.Weight = 1.0;
            this.xrTableCell36.Name = "xrTableCell36";
            this.xrTableCell36.Text = "Năm";
            this.xrTableCell36.Weight = 3.000000279581128;
            this.xrTable7.BackColor = Color.White;
            this.xrTable7.Borders = BorderSide.All;
            this.xrTable7.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTable7.LocationFloat = new PointFloat(649.8332f, 0f);
            this.xrTable7.Name = "xrTable7";
            this.xrTable7.Rows.AddRange(new XRTableRow[] { this.xrTableRow7 });
            this.xrTable7.SizeF = new SizeF(125.0002f, 25f);
            this.xrTable7.StylePriority.UseBackColor = false;
            this.xrTable7.StylePriority.UseBorders = false;
            this.xrTable7.StylePriority.UseFont = false;
            this.xrTable7.StylePriority.UseTextAlignment = false;
            this.xrTable7.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow7.Cells.AddRange(new XRTableCell[] { this.xrTableCell35 });
            this.xrTableRow7.Name = "xrTableRow7";
            this.xrTableRow7.Weight = 1.0;
            this.xrTableCell35.Name = "xrTableCell35";
            this.xrTableCell35.Text = "Qu\x00fd IV";
            this.xrTableCell35.Weight = 3.000000279581128;
            this.xrTable6.BackColor = Color.White;
            this.xrTable6.Borders = BorderSide.All;
            this.xrTable6.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTable6.LocationFloat = new PointFloat(525.8332f, 0f);
            this.xrTable6.Name = "xrTable6";
            this.xrTable6.Rows.AddRange(new XRTableRow[] { this.xrTableRow6 });
            this.xrTable6.SizeF = new SizeF(125.0001f, 25f);
            this.xrTable6.StylePriority.UseBackColor = false;
            this.xrTable6.StylePriority.UseBorders = false;
            this.xrTable6.StylePriority.UseFont = false;
            this.xrTable6.StylePriority.UseTextAlignment = false;
            this.xrTable6.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow6.Cells.AddRange(new XRTableCell[] { this.xrTableCell34 });
            this.xrTableRow6.Name = "xrTableRow6";
            this.xrTableRow6.Weight = 1.0;
            this.xrTableCell34.Name = "xrTableCell34";
            this.xrTableCell34.Text = "Qu\x00fd III";
            this.xrTableCell34.Weight = 3.000000279581128;
            this.xrTable5.BackColor = Color.White;
            this.xrTable5.Borders = BorderSide.All;
            this.xrTable5.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTable5.LocationFloat = new PointFloat(401.8333f, 0f);
            this.xrTable5.Name = "xrTable5";
            this.xrTable5.Rows.AddRange(new XRTableRow[] { this.xrTableRow5 });
            this.xrTable5.SizeF = new SizeF(124.9999f, 25f);
            this.xrTable5.StylePriority.UseBackColor = false;
            this.xrTable5.StylePriority.UseBorders = false;
            this.xrTable5.StylePriority.UseFont = false;
            this.xrTable5.StylePriority.UseTextAlignment = false;
            this.xrTable5.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { this.xrTableCell33 });
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.Weight = 1.0;
            this.xrTableCell33.Name = "xrTableCell33";
            this.xrTableCell33.Text = "Qu\x00fd II";
            this.xrTableCell33.Weight = 3.000000279581128;
            this.xrTable4.BackColor = Color.White;
            this.xrTable4.Borders = BorderSide.All;
            this.xrTable4.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTable4.LocationFloat = new PointFloat(277.8333f, 0f);
            this.xrTable4.Name = "xrTable4";
            this.xrTable4.Rows.AddRange(new XRTableRow[] { this.xrTableRow4 });
            this.xrTable4.SizeF = new SizeF(125.0001f, 25f);
            this.xrTable4.StylePriority.UseBackColor = false;
            this.xrTable4.StylePriority.UseBorders = false;
            this.xrTable4.StylePriority.UseFont = false;
            this.xrTable4.StylePriority.UseTextAlignment = false;
            this.xrTable4.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow4.Cells.AddRange(new XRTableCell[] { this.xrTableCell19 });
            this.xrTableRow4.Name = "xrTableRow4";
            this.xrTableRow4.Weight = 1.0;
            this.xrTableCell19.Name = "xrTableCell19";
            this.xrTableCell19.Text = "Qu\x00fd I";
            this.xrTableCell19.Weight = 3.000000279581128;
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.ReportFooter, this.GroupHeader1 });
            base.Landscape = true;
            base.Margins = new Margins(0x47, 0x3b, 70, 0x38);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x491;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptReportRate3_BeforePrint);
            this.xrTable2.EndInit();
            this.xrTable3.EndInit();
            this.xrTable1.EndInit();
            this.xrTable8.EndInit();
            this.xrTable7.EndInit();
            this.xrTable6.EndInit();
            this.xrTable5.EndInit();
            this.xrTable4.EndInit();
            this.EndInit();
        }

        private string LoadNameCode()
        {
            string str = "";
            if (this.m_Level == 1)
            {
                HRM_BRANCH hrm_branch = new HRM_BRANCH();
                hrm_branch.Get(this.m_Code);
                return ("Đơn vị: " + hrm_branch.BranchName + ". ");
            }
            if (this.m_Level == 2)
            {
                HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                hrm_department.Get(this.m_Code);
                return ("Đơn vị: " + hrm_department.DepartmentName + ". ");
            }
            if (this.m_Level == 3)
            {
                HRM_GROUP hrm_group = new HRM_GROUP();
                hrm_group.Get(this.m_Code);
                str = "Đơn vị: " + hrm_group.GroupName + ". ";
            }
            return str;
        }

        private void rptReportRate3_BeforePrint(object sender, PrintEventArgs e)
        {
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompany.Text = "";//MyInfo.Company.ToUpper();
            }
            this.dtDate.Text = this.LoadNameCode() + "Năm " + this.m_Year.ToString();
            DataSet set = new DataSet();
            DataTable table = new DataTable();
            table = this.l_Rate.ReportRate5(this.m_Level, this.m_Code, this.m_Year);
            set.Tables.Add(table);
            base.DataSource = set;
            base.DataAdapter = table;
            base.DataMember = table.TableName;
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }
    }
}

